package com.study.app.service;

import com.study.common.core.domain.PageQuery;
import com.study.common.core.page.TableDataInfo;
import com.study.app.domain.bo.AppUserInvitationRecordBo;
import com.study.app.domain.vo.AppUserInvitationRecordVo;


import java.util.Collection;
import java.util.List;

/**
 * 用户邀请记录Service接口
 *
 * @author study
 * @date 2023-04-24
 */
public interface IAppUserInvitationRecordService {

    /**
     * 查询用户邀请记录
     */
    AppUserInvitationRecordVo queryById(Long id);

    /**
     * 查询用户邀请记录列表
     */
    TableDataInfo<AppUserInvitationRecordVo> queryPageList(AppUserInvitationRecordBo bo, PageQuery pageQuery);

    /**
     * 查询用户邀请记录列表
     */
    List<AppUserInvitationRecordVo> queryList(AppUserInvitationRecordBo bo);

    /**
     * 新增用户邀请记录
     */
    Boolean insertByBo(AppUserInvitationRecordBo bo);

    /**
     * 修改用户邀请记录
     */
    Boolean updateByBo(AppUserInvitationRecordBo bo);

    /**
     * 校验并批量删除用户邀请记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
